package controller;

import java.util.ArrayList;

import manager.CartMgr;
import entity.Section;

/**
 * @author jaslin.wee.2012
 *
 */

public class CartCtrl {
	CartMgr cartMgr;
	
	public CartCtrl() {
		cartMgr = new CartMgr();
	}
	
	public void addToCart(String courseCode, String sectionCode, String userId) {
		
	}

	public ArrayList<Section>retrieveSectionsForStudent(String userId) {
		
		ArrayList<Section> sections = cartMgr.retrieveSectionsForStudent(userId);
		
		return sections;
		
	}
	
	public void deleteSection(String courseCode, String sectionCode, String userId){
		
		
	}
	
	public boolean hasSection(Section section){
		
		return true;
	}

}
